package practical_projects.games.submarine_war_v2;

import javax.swing.*;

public class Bomb extends Weapon {     // 炸弹
    public Bomb(int x, int y) {
        super(9, 12, x, y, 3);
    }

    @Override
    public void move() {
        y += speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.bomb;
    }

    @Override
    public boolean isOutBorder() {
        return y >= World.HEIGHT;
    }
}
